package com.wh.beans.custom;

import com.wh.model.CustomField;

import java.text.MessageFormat;
import java.text.SimpleDateFormat;
import java.util.Date;


public class Label implements ICustomLabel {

	@Override
	public String getCustomLabel(CustomField field, LabelType type) {
		String label = "", template = "";
		switch (type) {
		case add:
		case edit:
			template="<label>{0}</label>";
			label = MessageFormat.format(template,field.getInputTips());
			break;
		default:
			break;
		}
		return label;
	}

}
